package com.chen.springboot.controller;

import cn.hutool.http.HttpUtil;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenchao
 * @date 2022/6/18 17:55
 */
@RestController
@Api(value="EchartsController",tags = "大数据")
@RequestMapping("/echarts")
public class EchartsController {


    @GetMapping("/epidemic")
    public String epidemic() {
        return HttpUtil.get("https://c.m.163.com/ug/api/wuhan/app/data/list-total?t=" + System.currentTimeMillis());
    }
}
